console.log(a); // undefined
console.log(b); // 报错：b is not defined
var a = 1;
// var a = 2;// 重复声明，不报错，会被忽略
console.log(a);
let b = 3;
// let b = 4;// 重复声明，会报错
console.log(b);